package jvm;

import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;

public class SoftRefrenceTest {
    public static void main(String[] args) {
        ClassInitTest classInitTest = new ClassInitTest();
        SoftReference<ClassInitTest> classInitTestSoftReference = new SoftReference<>(classInitTest);
        WeakReference weakReference = new WeakReference(classInitTestSoftReference);
        System.out.println(weakReference.get());
        System.out.println(classInitTestSoftReference.get());
    }
}
